package com.common.zxing;

import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;

import com.google.zxing.Result;

public class CaptureActivity extends BaseCaptureActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
//        autoEnlarged = getIntent().getBooleanExtra("autoEnlarged", false);

        playSound = true;
    }

    @Override
    protected void onResume() {
        super.onResume();


    }


    @Override
    public void handleDecodeInternally(Result rawResult) {
        String raw = rawResult.getText();
        if (!TextUtils.isEmpty(raw)) {
            Intent intent = new Intent();
            intent.putExtra("result", raw);
            setResult(RESULT_OK, intent);
            finish();
        }
    }

}
